﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrator/Master/Administrator.Master"
    AutoEventWireup="true" CodeBehind="ListQuestion.aspx.cs" Inherits="PhuLeBooze.Views.Project.ListQuestion" %>

<asp:Content ID="Content1" ContentPlaceHolderID="AdministratorTitle" runat="server">
    Danh sách câu hỏi</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="AdministratorHead" runat="server">
    <script src="../../../ckeditor/ckeditor.js" type="text/javascript" ></script>
    <script src="../../../ckfinder/ckfinder.js"  type="text/javascript" ></script>
    <link href="../../../Js/Jquery/plugins/uploadify/jquery.uploadify.css" rel="stylesheet" />
    <script src="../../../Js/Jquery/plugins/uploadify/jquery.uploadify.js" type="text/javascript"></script>
    <link href="Css/Admin.Project.Question.List.css" rel="stylesheet" type="text/css" />
    <script src="Js/Admin.Project.Question.List.js" type="text/javascript"></script>
    <script src="Js/Admin.OptionAnswer.js" type="text/javascript"></script>
    <style>
        #FormEdit
        {
            max-height: 520px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="AdministratorBody" runat="server">
    <div id="AdminToolBar">
        <div class="cssFloatLeft">
            <span>Chọn dự án:</span>
            <asp:DropDownList runat="server" ID="ddlProjectList" CssClass="ui-widget-content ui-corner-all"
                ClientIDMode="Static">
            </asp:DropDownList>
        </div>
        <div class="cssFloatRight">
            <div class="cssFloatLeft" style="margin-right: 20px;">
                <img id="imgUserAdd" title="Add" src="../../Images/24x24/add.png" />
                <img id="imgUserEdit" title="Edit" src="../../Images/24x24/edit.png" />
                <img id="imgUserDel" title="Delete" src="../../Images/24x24/delete.png" />
                <img id="imgUserFilter" title="Filter" src="../../Images/24x24/filter.png" />
                <img id="imgUserExport" title="Export" src="../../Images/24x24/export-excel.png" />
            </div>
        </div>
    </div>
    <div class="cssClearBoth">
    </div>
    <table id="UsersGrid">
    </table>
    <div id="UsersGridPages">
    </div>
    <div id="FormEdit" class="FormEdit" style="display: none;">
        <div style="display: none;">
            <label>
                ID</label>
            <input type="text" id="txtID" data-field="ID" class="ui-widget-content ui-corner-all" />
        </div>
        <div class="new-row">
            <label>
                Câu số</label>
            <input type="hidden" id="ID" data-field="ID" />
            <input type="text" id="txtZOrder" data-field="STT" class="ui-widget-content ui-corner-all" />
        </div>
        <div>
            <label style="text-align: right; padding-right: 12px; width: 210px; float: left;">
                Sắp xếp trả lời ngẫu nhiên</label>
            <div class="wrap-control">
                <input type="checkbox" id="DisplayRandomResponse" data-field="DisplayRandomResponse"
                    class="ui-widget-content ui-corner-all" value="1" /></div>
        </div>
        <div class="new-row">
            <label>
                Mã câu hỏi</label>
            <input type="text" id="txtCode" data-field="Code" class="ui-widget-content ui-corner-all" />
        </div>
        <div>
            <label style="text-align: right; padding-right: 12px;">
                Trả lời tối đa</label>
            <input type="text" id="txtMaxResponseCount" data-field="MaxResponseCount" class="ui-widget-content ui-corner-all"
                value="100" />
        </div>
        <div class="new-row">
            <label>
                Loại câu hỏi</label>
            <asp:DropDownList runat="server" ID="ddlQuestionType" data-field="QuestionType" CssClass="ui-widget-content ui-corner-all"
                onchange="GenarateListOption(this)" ClientIDMode="Static">
            </asp:DropDownList>
        </div>
        <div>
            <label style="text-align: right; padding-right: 12px;">
                Câu Phụ Thuộc</label>
            <select id="cboDependent" data-field="DependentID" class="ui-widget-content ui-corner-all">
            </select>
        </div>
        <div class="new-row">
            <label>
                Dạng hiển thị</label>
            <select id="ddlContentType" data-field="ContentType">
                <option value="0">Normal</option>
                <option value="1">Picture</option>
                <option value="2">Video</option>
            </select>
        </div>
        <div>
            <label style="text-align: right; padding-right: 12px;">
                Loại phụ thuộc</label>
            <asp:DropDownList runat="server" ID="ddlDependentType" data-field="DependentType"
                CssClass="ui-widget-content ui-corner-all" ClientIDMode="Static">
            </asp:DropDownList>
        </div>
        <div class="new-row QuestionScale">
            <label>
                Chọn Scale</label>
            <select id="FromScale" onchange="GenerateScaleQuestion()">
                <option value="1">1</option>
                <option value="0">0</option>
            </select>
            -->
            <select id="ToScale" onchange="GenerateScaleQuestion()">
                <option value="2">2</option>
                <option value="3">3</option>
                <option value="4">4</option>
                <option value="5">5</option>
                <option value="6">6</option>
                <option value="7">7</option>
                <option value="8">8</option>
                <option value="9">9</option>
                <option value="10">10</option>
            </select>
        </div>
        <div class="new-row QuestionMatrix">
            <label>
                Số dòng
            </label>
            <select id="RowMatrix" onchange="GenerateMatrixQuestion()">
                <option value="1">1</option>
                <option value="2">2</option>
                <option value="3">3</option>
                <option value="4">4</option>
                <option value="5">5</option>
                <option value="6">6</option>
                <option value="7">7</option>
                <option value="8">8</option>
                <option value="9">9</option>
                <option value="10">10</option>
                <option value="11">11</option>
                <option value="12">12</option>
                <option value="13">13</option>
                <option value="14">14</option>
                <option value="15">15</option>
                <option value="16">16</option>
                <option value="17">17</option>
                <option value="18">18</option>
                <option value="19">19</option>
                <option value="20">20</option>
                <option value="21">21</option>
                <option value="22">22</option>
                <option value="23">23</option>
                <option value="24">24</option>
                <option value="25">25</option>
                <option value="26">26</option>
                <option value="27">27</option>
                <option value="28">28</option>
                <option value="29">29</option>
                <option value="30">30</option>
                <option value="31">31</option>
                <option value="32">32</option>
                <option value="33">33</option>
                <option value="34">34</option>
                <option value="35">35</option>
                <option value="36">36</option>
                <option value="37">37</option>
                <option value="38">38</option>
                <option value="39">39</option>
                <option value="40">40</option>
            </select>
        </div>
        <div class="new-row QuestionMatrix">
            <label>
                Số cột
            </label>
            <select id="ColMatrix" onchange="GenerateMatrixQuestion()">
                <option value="1">1</option>
                <option value="2">2</option>
                <option value="3">3</option>
                <option value="4">4</option>
                <option value="5">5</option>
                <option value="6">6</option>
                <option value="7">7</option>
                <option value="8">8</option>
                <option value="9">9</option>
                <option value="10">10</option>
            </select>
        </div>
        <div class="new-row">
            <label style="vertical-align: top">
                Nội dung câu hỏi</label>
            <textarea id="txtContent" data-field="Content" class="ui-widget-content ui-corner-all"
                rows="3"></textarea>
        </div>
        <div class="new-row">
            <label style="vertical-align: top">
                Link Media</label>
            <input type="text" data-field="MediaUrl" class="ui-widget-content ui-corner-all"
                style="width: 310px;" id="txtmediaURL"></input>
            <button type="button" id="btnSelectImg">
                Chọn</button>
        </div>
        <div class="new-row" id="listOptionQuestion">
            <label style="color: Red; width: 400px; text-align: center; font-size: 24px">
                Câu trả lời</label>
        </div>
    </div>
</asp:Content>
